import globalConfig from "@/utils/config.js";
import { request } from "@/utils/http.js";

const microUrl = globalConfig.microUrl;
const modules = "/sys";
export default {
  // 收集数据采集记录
  collect: (data) =>
    request({
      url: `${microUrl}${modules}/dataCollectionRecord/collect`,
      method: "POST",
      data
    }),
  // 店铺装修模板
  shopTemplatePage: (data) =>
    request({
      url: `${microUrl}${modules}/templatePage/getById`,
      method: "GET",
      data
    }),
  // 商品详情模板get
  getTemplatePageAndOption: (data) =>
    request({
      url: `${microUrl}${modules}/templatePage/getTemplatePageAndOption`,
      method: "GET",
      data
    })
};
